package zzg.study.protocol.request;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import zzg.study.protocol.Packet;

import static zzg.study.protocol.command.Command.GROUP_MESSAGE_REQUEST;

/**
 * @Classname GroupMessageRequestPacket
 * @Description 群消息请求packet
 * @Date 2023/12/10 0:52
 * @Author zhuzhenguo
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class GroupMessageRequestPacket extends Packet {
    private String toGroupId;
    private String message;

    public GroupMessageRequestPacket(String toGroupId, String message) {
        this.toGroupId = toGroupId;
        this.message = message;
    }

    @Override
    public Byte getCommand() {
        return GROUP_MESSAGE_REQUEST;
    }
}
